package day05;

import java.util.Random;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/5 14:36
 */
public class MethodDemo2 {
    public static void main(String[] args) {
        /**
        int a=sum(22,10);
        System.out.println(a);
        int b=10;
        int c=10;
        int d=sum(b,c);
        System.out.println(d);


        int [] bb=sahkdj(5,10);
        System.out.println("输出bb 数组的第一个元素"+bb[0]);
        for (int i=0;i<bb.length;i++){
            System.out.println(bb[i]);
        }

        int[]dd=sahkdj(10,100);
        System.out.println("输出dd 的长度"+dd.length);
        for (int i=0;i<dd.length;i++){
            System.out.println(dd[i]);
        }
         **/

        say();
        say("有参String");
        say("有参String和int");
        say("张山","李欢");
        String[]name={"李现记","李华","lihua","阿猫","阿狗"};
        String[]story={"","","","",""};
    }
    /**public static int sum(int num1,int num2){
        int num=num1+num2;
        return num;

    }
    public static int[] sahkdj(int len,int max){
        Random rand=new Random();
        int[] aa=new int [len];
        for (int i=0;i<aa.length;i++){
            aa[i]=rand.nextInt(max);
        }
        return aa;
    }
**/


    public static void say(){
        System.out.println("无参say");
    }
    public static void say(String aa){
        System.out.println(aa);
    }
    public static void say(String aa,int bb){
        System.out.println(aa+bb);
    }
    public static void say(String bb,String nn){
        System.out.println(bb+"和"+nn+"是好朋友");
    }

}
